package cn.relx.org.domain;

import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.relx.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author relx
 * @since 2022-10-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseDomain{
    @Excel(name = "店铺名称",orderNum = "1",width = 30,isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话",orderNum = "2",width = 30,isImportField = "true_st")
    private String tel;
    @Excel(name = "创建时间",orderNum = "3",width = 30,isImportField = "true_st")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 店铺状态：0待审核，1以审核，-1驳回，2待激活
     */
    @Excel(name = "状态",replace = {"待审核_0","审核通过_1","驳回_-1","已激活_2"},orderNum = "4",width = 30,isImportField = "true_st")
    private Integer state = 0;
    @Excel(name = "店铺地址",orderNum = "5",width = 30,isImportField = "true_st")
    private String address;
    @Excel(name = "店铺LoGo",orderNum = "6",width = 30,isImportField = "true_st")
    private String logo;
    @Excel(name = "员工",orderNum = "7",width = 30,isImportField = "true_st")
    private Long adminId;
    // 管理员
    private Employee admin;
}
